import http from '@/utils/http'

// 加入购物车
export const addCart = ({ skuId, count }) => http({ url: '/member/cart', method: 'POST', data: { skuId, count } })

// 获取购物车
export const getCart = () => http({ url: '/member/cart' })

// 删除购物车
export const delCart = (ids) => http({ url: '/member/cart', method: 'DELETE', data: { ids } })

// 合并购物车
export const mergeCart = (data) => http({ url: '/member/cart/merge', method: 'POST', data })
